package com.weiweiqin.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.weiweiqin.dao.WebInfoDao;
import com.weiweiqin.model.WebInfo;
import com.weiweiqin.service.WebInfoService;
import com.weiweiqin.vo.common.Page;
@Service
public class WebInfoServiceImpl implements WebInfoService {
	@Autowired
	private WebInfoDao webInfoDao;

	public List<WebInfo> pageList(Page page, Map<String, Object> conditions) {
		return webInfoDao.pageList(page, conditions);
	}

	public int totalCount(Map<String, Object> conditions) {
		return webInfoDao.totalCount(conditions);
	}

	public void save(WebInfo webInfo) {
		webInfoDao.insert(webInfo);
		
	}

	public void update(WebInfo webInfo) {
		webInfoDao.update(webInfo);
		
	}

	public WebInfo get(int id) {
		return webInfoDao.get(id);
	}

	


}